.class public Lcom/netease/newsreader/activity/CollectActivity;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "CollectActivity.java"


# instance fields
.field private animation:Landroid/view/animation/Animation;

.field private articleAdapter:Lcom/netease/newsreader/util/CollectArticleAdapter;

.field private collectData:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private collectGridView:Landroid/widget/GridView;

.field private collectList:Landroid/widget/ListView;

.field private collectType:I

.field private collect_layout_bg:Landroid/widget/LinearLayout;

.field private cu:Lcom/netease/newsreader/util/CollectUtil;

.field private empty_text:Landroid/widget/TextView;

.field private gridViewClistener:Landroid/widget/AdapterView$OnItemClickListener;

.field private imageBg:Landroid/widget/ImageView;

.field private listViewClickListener:Landroid/widget/AdapterView$OnItemClickListener;

.field private main_text:Landroid/widget/TextView;

.field private menuDeleteListener:Landroid/view/View$OnClickListener;

.field private menuHomeListener:Landroid/view/View$OnClickListener;

.field private menu_2:Landroid/view/View;

.field private menu_delete:Landroid/widget/LinearLayout;

.field private menu_display:Z

.field private menu_home:Landroid/widget/LinearLayout;

.field private old:Landroid/view/View;

.field private pgridadapter:Lcom/netease/newsreader/util/CollectPicturesAdapter;

.field private textViewListener:Landroid/view/View$OnClickListener;

.field private top_article:Landroid/widget/TextView;

.field private top_comment:Landroid/widget/TextView;

.field private top_picture:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 44
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    .line 63
    const/4 v0, 0x1

    iput v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectType:I

    .line 113
    new-instance v0, Lcom/netease/newsreader/activity/CollectActivity$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/CollectActivity$1;-><init>(Lcom/netease/newsreader/activity/CollectActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->textViewListener:Landroid/view/View$OnClickListener;

    .line 220
    new-instance v0, Lcom/netease/newsreader/activity/CollectActivity$2;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/CollectActivity$2;-><init>(Lcom/netease/newsreader/activity/CollectActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->gridViewClistener:Landroid/widget/AdapterView$OnItemClickListener;

    .line 254
    new-instance v0, Lcom/netease/newsreader/activity/CollectActivity$3;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/CollectActivity$3;-><init>(Lcom/netease/newsreader/activity/CollectActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->listViewClickListener:Landroid/widget/AdapterView$OnItemClickListener;

    .line 367
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_display:Z

    .line 446
    new-instance v0, Lcom/netease/newsreader/activity/CollectActivity$4;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/CollectActivity$4;-><init>(Lcom/netease/newsreader/activity/CollectActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuDeleteListener:Landroid/view/View$OnClickListener;

    .line 465
    new-instance v0, Lcom/netease/newsreader/activity/CollectActivity$5;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/CollectActivity$5;-><init>(Lcom/netease/newsreader/activity/CollectActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuHomeListener:Landroid/view/View$OnClickListener;

    .line 44
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/CollectActivity;Landroid/view/View;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 185
    invoke-direct {p0, p1}, Lcom/netease/newsreader/activity/CollectActivity;->sliderBg(Landroid/view/View;)V

    return-void
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/CollectActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 58
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectData:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/activity/CollectActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 47
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->empty_text:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$3(Lcom/netease/newsreader/activity/CollectActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 63
    iput p1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectType:I

    return-void
.end method

.method static synthetic access$4(Lcom/netease/newsreader/activity/CollectActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 143
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->setListViewData()V

    return-void
.end method

.method static synthetic access$5(Lcom/netease/newsreader/activity/CollectActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 157
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->setPicViewData()V

    return-void
.end method

.method static synthetic access$6(Lcom/netease/newsreader/activity/CollectActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 63
    iget v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectType:I

    return v0
.end method

.method static synthetic access$7(Lcom/netease/newsreader/activity/CollectActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 367
    iput-boolean p1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_display:Z

    return-void
.end method

.method private findViews()V
    .locals 3

    .prologue
    .line 83
    const v1, 0x7f0c0041

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collect_layout_bg:Landroid/widget/LinearLayout;

    .line 84
    const v1, 0x7f0c0055

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->empty_text:Landroid/widget/TextView;

    .line 85
    const v1, 0x7f0c0008

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->main_text:Landroid/widget/TextView;

    .line 87
    const v1, 0x7f0c0052

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_article:Landroid/widget/TextView;

    .line 88
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_article:Landroid/widget/TextView;

    const-string v2, "1"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 89
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_article:Landroid/widget/TextView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->old:Landroid/view/View;

    .line 90
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->old:Landroid/view/View;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/view/View;->setEnabled(Z)V

    .line 91
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->old:Landroid/view/View;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/view/View;->setSelected(Z)V

    .line 92
    const v1, 0x7f0c0053

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_picture:Landroid/widget/TextView;

    .line 93
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_picture:Landroid/widget/TextView;

    const-string v2, "2"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 94
    const v1, 0x7f0c0054

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_comment:Landroid/widget/TextView;

    .line 95
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_comment:Landroid/widget/TextView;

    const-string v2, "3"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 97
    const v1, 0x7f0c0051

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->imageBg:Landroid/widget/ImageView;

    .line 98
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->imageBg:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    .line 99
    .local v0, lp:Landroid/widget/FrameLayout$LayoutParams;
    iget v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->screenwidth:I

    div-int/lit8 v1, v1, 0x3

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->width:I

    .line 101
    const v1, 0x7f0c004a

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectList:Landroid/widget/ListView;

    .line 102
    const v1, 0x7f0c004b

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/GridView;

    iput-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectGridView:Landroid/widget/GridView;

    .line 103
    return-void
.end method

.method private setListViewData()V
    .locals 3

    .prologue
    .line 144
    new-instance v0, Lcom/netease/newsreader/util/CollectUtil;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/util/CollectUtil;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->cu:Lcom/netease/newsreader/util/CollectUtil;

    .line 145
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->cu:Lcom/netease/newsreader/util/CollectUtil;

    iget v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectType:I

    invoke-virtual {v0, v1}, Lcom/netease/newsreader/util/CollectUtil;->getCollectObjects(I)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectData:Ljava/util/List;

    .line 147
    new-instance v0, Lcom/netease/newsreader/util/CollectArticleAdapter;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectData:Ljava/util/List;

    const/4 v2, 0x1

    invoke-direct {v0, p0, v1, v2}, Lcom/netease/newsreader/util/CollectArticleAdapter;-><init>(Landroid/content/Context;Ljava/util/List;Z)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->articleAdapter:Lcom/netease/newsreader/util/CollectArticleAdapter;

    .line 148
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectList:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->articleAdapter:Lcom/netease/newsreader/util/CollectArticleAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 150
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectData:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 151
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->empty_text:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 154
    :goto_0
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->setObjVisibility()V

    .line 155
    return-void

    .line 153
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->empty_text:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method private setMenu()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 374
    const-string v2, "layout_inflater"

    invoke-virtual {p0, v2}, Lcom/netease/newsreader/activity/CollectActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 375
    .local v0, inflater:Landroid/view/LayoutInflater;
    const v2, 0x7f03000b

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 376
    .local v1, layout:Landroid/view/View;
    new-instance v2, Landroid/widget/PopupWindow;

    const/4 v3, -0x1

    const/4 v4, -0x2

    invoke-direct {v2, v1, v3, v4}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuWindow:Landroid/widget/PopupWindow;

    .line 378
    iget-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuWindow:Landroid/widget/PopupWindow;

    const v3, 0x7f0a002f

    invoke-virtual {v2, v3}, Landroid/widget/PopupWindow;->setAnimationStyle(I)V

    .line 379
    const v2, 0x7f0c0037

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_2:Landroid/view/View;

    .line 380
    const v2, 0x7f0c0039

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_delete:Landroid/widget/LinearLayout;

    .line 381
    const v2, 0x7f0c003b

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_home:Landroid/widget/LinearLayout;

    .line 382
    iget-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_delete:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 383
    iget-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_home:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 385
    iget-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_delete:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuDeleteListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 386
    iget-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_home:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuHomeListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 387
    return-void
.end method

.method private setObjVisibility()V
    .locals 4

    .prologue
    const/16 v3, 0x8

    const/4 v2, 0x0

    .line 176
    iget v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectType:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 177
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectList:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    .line 178
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectGridView:Landroid/widget/GridView;

    invoke-virtual {v0, v2}, Landroid/widget/GridView;->setVisibility(I)V

    .line 183
    :goto_0
    return-void

    .line 180
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectList:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 181
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectGridView:Landroid/widget/GridView;

    invoke-virtual {v0, v3}, Landroid/widget/GridView;->setVisibility(I)V

    goto :goto_0
.end method

.method private setPicViewData()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 158
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->cu:Lcom/netease/newsreader/util/CollectUtil;

    iget v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectType:I

    invoke-virtual {v0, v1}, Lcom/netease/newsreader/util/CollectUtil;->getCollectObjects(I)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectData:Ljava/util/List;

    .line 159
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectData:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 161
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectGridView:Landroid/widget/GridView;

    invoke-virtual {v0, v3}, Landroid/widget/GridView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 162
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->empty_text:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 169
    :goto_0
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->setObjVisibility()V

    .line 171
    new-instance v0, Lcom/netease/newsreader/util/CollectPicturesAdapter;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectData:Ljava/util/List;

    const/4 v2, 0x1

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/netease/newsreader/util/CollectPicturesAdapter;-><init>(Landroid/content/Context;Ljava/util/List;ZLandroid/widget/CheckBox;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->pgridadapter:Lcom/netease/newsreader/util/CollectPicturesAdapter;

    .line 172
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectGridView:Landroid/widget/GridView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->pgridadapter:Lcom/netease/newsreader/util/CollectPicturesAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 173
    return-void

    .line 165
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->empty_text:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 166
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectGridView:Landroid/widget/GridView;

    const v1, 0x7f0200d5

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setBackgroundResource(I)V

    goto :goto_0
.end method

.method private sliderBg(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const/4 v8, 0x1

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 187
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/CollectActivity;->old:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    sub-int v2, v4, v5

    .line 189
    .local v2, num:I
    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v4

    mul-int v3, v2, v4

    .line 190
    .local v3, toX:I
    iget-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->old:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getLeft()I

    move-result v1

    .line 192
    .local v1, left:I
    iget-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->old:Landroid/view/View;

    invoke-virtual {v4, v8}, Landroid/view/View;->setEnabled(Z)V

    .line 193
    iget-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->old:Landroid/view/View;

    invoke-virtual {v4, v6}, Landroid/view/View;->setSelected(Z)V

    .line 194
    invoke-virtual {p1, v6}, Landroid/view/View;->setEnabled(Z)V

    .line 197
    iput-object p1, p0, Lcom/netease/newsreader/activity/CollectActivity;->old:Landroid/view/View;

    .line 199
    new-instance v4, Landroid/view/animation/TranslateAnimation;

    int-to-float v5, v1

    add-int v6, v1, v3

    int-to-float v6, v6

    invoke-direct {v4, v5, v6, v7, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    iput-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->animation:Landroid/view/animation/Animation;

    .line 200
    const v4, 0x10a0006

    invoke-static {p0, v4}, Landroid/view/animation/AnimationUtils;->loadInterpolator(Landroid/content/Context;I)Landroid/view/animation/Interpolator;

    move-result-object v0

    .line 201
    .local v0, intep:Landroid/view/animation/Interpolator;
    iget-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->animation:Landroid/view/animation/Animation;

    invoke-virtual {v4, v0}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 202
    iget-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->animation:Landroid/view/animation/Animation;

    invoke-virtual {v4, v8}, Landroid/view/animation/Animation;->setFillAfter(Z)V

    .line 203
    iget-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->animation:Landroid/view/animation/Animation;

    new-instance v5, Lcom/netease/newsreader/activity/CollectActivity$6;

    invoke-direct {v5, p0, p1}, Lcom/netease/newsreader/activity/CollectActivity$6;-><init>(Lcom/netease/newsreader/activity/CollectActivity;Landroid/view/View;)V

    invoke-virtual {v4, v5}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 215
    iget-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->animation:Landroid/view/animation/Animation;

    const-wide/16 v5, 0xc8

    invoke-virtual {v4, v5, v6}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 216
    iget-object v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->imageBg:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/netease/newsreader/activity/CollectActivity;->animation:Landroid/view/animation/Animation;

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 217
    return-void
.end method

.method private updateViewContent()V
    .locals 3

    .prologue
    .line 105
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->main_text:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/netease/newsreader/activity/CollectActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0b000e

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 107
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_article:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->textViewListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 108
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_picture:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->textViewListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 109
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_comment:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->textViewListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 110
    return-void
.end method


# virtual methods
.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 3
    .parameter "ev"

    .prologue
    .line 430
    iget-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v2}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 431
    iget-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v2}, Landroid/widget/PopupWindow;->dismiss()V

    .line 432
    const/4 v2, 0x0

    iput-boolean v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_display:Z

    .line 434
    :cond_0
    const/4 v1, 0x0

    .line 436
    .local v1, result:Z
    :try_start_0
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .line 440
    :goto_0
    return v1

    .line 437
    :catch_0
    move-exception v0

    .line 438
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public goBackClick(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 425
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/CollectActivity;->finish()V

    .line 426
    return-void
.end method

.method public onApplyTheme()V
    .locals 7

    .prologue
    const v6, 0x7f080011

    const v5, 0x7f02007e

    const/4 v4, 0x1

    const v3, 0x7f0800bf

    .line 492
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onApplyTheme()V

    .line 493
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/CollectActivity;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 494
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v1, 0x7f0c0008

    const v2, 0x7f080025

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 495
    const v1, 0x7f0c006f

    const v2, 0x7f020089

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 496
    const v1, 0x7f0c0007

    const v2, 0x7f0200fe

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 497
    const v1, 0x7f0c0043

    const v2, 0x7f0200ff

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 498
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collect_layout_bg:Landroid/widget/LinearLayout;

    const v2, 0x7f080029

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroudColor(Landroid/content/Context;Landroid/view/View;I)V

    .line 499
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_article:Landroid/widget/TextView;

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 500
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_picture:Landroid/widget/TextView;

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 501
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->top_comment:Landroid/widget/TextView;

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 502
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectList:Landroid/widget/ListView;

    const v2, 0x7f020070

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setListViewDivider(Landroid/content/Context;Landroid/widget/ListView;I)V

    .line 503
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->imageBg:Landroid/widget/ImageView;

    const v2, 0x7f0200ee

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    .line 505
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->articleAdapter:Lcom/netease/newsreader/util/CollectArticleAdapter;

    if-eqz v1, :cond_0

    .line 506
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->articleAdapter:Lcom/netease/newsreader/util/CollectArticleAdapter;

    invoke-virtual {v1}, Lcom/netease/newsreader/util/CollectArticleAdapter;->notifyDataSetChanged()V

    .line 508
    :cond_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->pgridadapter:Lcom/netease/newsreader/util/CollectPicturesAdapter;

    if-eqz v1, :cond_1

    .line 509
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->pgridadapter:Lcom/netease/newsreader/util/CollectPicturesAdapter;

    invoke-virtual {v1}, Lcom/netease/newsreader/util/CollectPicturesAdapter;->notifyDataSetChanged()V

    .line 513
    :cond_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_2:Landroid/view/View;

    const v2, 0x7f080015

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroudColor(Landroid/content/Context;Landroid/view/View;I)V

    .line 514
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_delete:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0, v1, v5}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 515
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_delete:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-virtual {v0, p0, v1, v6}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 516
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_home:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0, v1, v5}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 517
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_home:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-virtual {v0, p0, v1, v6}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 519
    const v1, 0x7f0c0002

    const v2, 0x7f020041

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 520
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->empty_text:Landroid/widget/TextView;

    const v2, 0x7f080027

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 521
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2
    .parameter "savedInstanceState"

    .prologue
    .line 67
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 68
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/CollectActivity;->requestWindowFeature(I)Z

    .line 69
    const v0, 0x7f03000f

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/CollectActivity;->setContentView(I)V

    .line 71
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->findViews()V

    .line 72
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->updateViewContent()V

    .line 73
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->setListViewData()V

    .line 74
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->setMenu()V

    .line 77
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectGridView:Landroid/widget/GridView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->gridViewClistener:Landroid/widget/AdapterView$OnItemClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 78
    iget-object v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectList:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->listViewClickListener:Landroid/widget/AdapterView$OnItemClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 79
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 5
    .parameter "keyCode"
    .parameter "event"

    .prologue
    const/4 v0, 0x1

    const/4 v4, 0x0

    .line 398
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-le v1, v0, :cond_0

    .line 399
    invoke-super {p0, p1, p2}, Lcom/netease/newsreader/activity/BaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    .line 421
    :goto_0
    return v0

    .line 402
    :cond_0
    iget-boolean v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_display:Z

    if-eqz v1, :cond_1

    .line 403
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v1}, Landroid/widget/PopupWindow;->dismiss()V

    .line 404
    iput-boolean v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_display:Z

    goto :goto_0

    .line 407
    :cond_1
    const/16 v1, 0x52

    if-ne p1, v1, :cond_3

    .line 409
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v1}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v1

    if-nez v1, :cond_2

    .line 410
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuWindow:Landroid/widget/PopupWindow;

    iget-object v2, p0, Lcom/netease/newsreader/activity/CollectActivity;->collect_layout_bg:Landroid/widget/LinearLayout;

    const/16 v3, 0x51

    invoke-virtual {v1, v2, v3, v4, v4}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    .line 411
    iput-boolean v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_display:Z

    goto :goto_0

    .line 414
    :cond_2
    iget-object v1, p0, Lcom/netease/newsreader/activity/CollectActivity;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v1}, Landroid/widget/PopupWindow;->dismiss()V

    .line 415
    iput-boolean v4, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_display:Z

    goto :goto_0

    .line 421
    :cond_3
    invoke-super {p0, p1, p2}, Lcom/netease/newsreader/activity/BaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    .prologue
    .line 391
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onPause()V

    .line 392
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->menu_display:Z

    .line 393
    return-void
.end method

.method protected onResume()V
    .locals 2

    .prologue
    .line 482
    iget v0, p0, Lcom/netease/newsreader/activity/CollectActivity;->collectType:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 483
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->setPicViewData()V

    .line 487
    :goto_0
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onResume()V

    .line 488
    return-void

    .line 485
    :cond_0
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CollectActivity;->setListViewData()V

    goto :goto_0
.end method
